<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>导航页</title>
<link rel="stylesheet" type="text/css" href="<%=basePath %>static/css/bootstrap.min.css" />
<link href="<%=basePath %>static/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<script type="text/javascript" src="<%=basePath %>static/js/jquery.js"></script>
<script type="text/javascript" src="<%=basePath %>static/js/FusionCharts.js"></script>
<script type="text/javascript" src="<%=basePath %>static/js/jqueryui/jquery.ui.core.js"></script>
<script type="text/javascript" src="<%=basePath %>static/js/jqueryui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="<%=basePath %>static/js/jqueryui/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="<%=basePath %>static/js/jqueryui/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="<%=basePath %>static/js/jqueryvalidate/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath %>static/js/jqueryvalidate/messages_cn.js"></script>
<script type="text/javascript" src="<%=basePath %>static/js/bootstrap.min.js"></script>
<style type="text/css">
	#nav2{
    		margin: 40px auto;
    	}
   	.input{
   		height: 25px;
   	}
   	div input{
   		height: 25px;
   	}
</style>
    	
</head>

<body>
	<form class="form-horizontal" action="editOperator" method="post" style="margin-bottom:0px;">
		<div id="myModal3" class="modal hide fade in" style="dispaly:none;">
			<div class="modal-header">
				<h3>修改密码</h3>
			</div>
			<div class="modal-body">
				<fieldset>
				<input type="hidden" class="span5" name="id" value="${operator.id }">
				<input type="hidden" class="span5" name="username" value="${operator.username }">
				<input type="hidden" class="span5" name="role" value="${operator.role}">
				<div class="control-group">
					<label class="control-label">输入原密码：</label>
					<div class="controls">
						<input type="text" class="span4" name="password">
					</div>
				</div>
			    <div class="control-group">
					<label class="control-label" for="input01">输入新密码：</label>
					<div class="controls">
						<input type="text" class="span4" name="newpwd">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="input01">确认新密码：</label>
					<div class="controls">
						<input type="text" class="span4">
					</div>
				</div>
				</fieldset>
			</div>
			<div class="modal-footer">
				<button class="btn btn-primary" type="submit"><i class="icon-ok-sign icon-white"></i>保存</button>
				<a class="btn" href="#" data-dismiss="modal"><i class="icon-remove-sign"></i>取消</a>
			</div>
		</div>
	</form>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">企业进销存管理系统</a>
				<div class="nav-collapse">
					<ul class="nav">
						<li class="active"><a href="main">基础信息管理</a></li>
						<li><a href="goodsin">进货管理</a></li>
						<li><a href="sales">销售管理</a></li>
						<li><a href="look">查询管理</a></li>
						<li><a href="stock">库存管理</a></li>
						<c:if test="${operator.role == 'admin' }">
							<li><a href="operatorList">系统管理</a></li>
						</c:if>
					</ul>
					<ul class="nav pull-right">
						<li class="divider-vertical"></li>
						<li><a href="#">${operator.username }</a></li>
						<li class="divider-vertical"></li>
						<li class="dropdown">
							<a class="dropdown-toggle" data-toggle="dropdown" href="#"> 用户设置 <b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li><a href="#myModal3" data-toggle="modal">修改密码</a></li>
								<li><a href="uploadImage.action">上传头像</a></li>
								<li class="divider"></li>
								<li><a href="index.action">安全退出</a></li>
							</ul>
						</li>	
					</ul>
				</div>
			</div>
		</div>
	</div>
	</body>
</html>
